package corp.sunny.frameworks.dao;

import corp.sunny.frameworks.exception.DAOException;

/**
 * @File:AbstractBaseDAO.java
 * @Date:Jun 15, 2011
 * @Author:Subhash Bavi
 * 
 * @Description:
 * @Copyright Sunny Corporation - 2011
 */
public abstract class AbstractBaseDAO implements BaseDAO {

	@Override
	public void save(Object obj) throws DAOException {
		throw new DAOException("DAO-SAVE",
				"Cutom DAO not overriding method correctly");

	}

	@Override
	public void saveOrUpdate(Object obj) throws DAOException {
		throw new DAOException("DAO-SAVEORUPDATE",
				"Cutom DAO not overriding method correctly");
	}

	@Override
	public Object load(Object obj) throws DAOException {
		throw new DAOException("DAO-LOAD",
				"Cutom DAO not overriding method correctly");
	}

	@Override
	public Object loadAll(Object obj) throws DAOException {
		throw new DAOException("DAO-LOADALL",
				"Cutom DAO not overriding method correctly");
	}

	@Override
	public Object find(Object obj) throws DAOException {
		throw new DAOException("DAO-FIND",
				"Cutom DAO not overriding method correctly");
	}

	@Override
	public void delete(Object obj) throws DAOException {
		throw new DAOException("DAO-DELETE",
				"Cutom DAO not overriding method correctly");
	}
}
